package com.admin.service;

import com.admin.dbdao.AccountAdminDao;
import com.data.bean.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 管理员查看账号信息
 *
 * @author:HingLo
 * @create 2017-09-29 9:03
 **/
@Service
public class AccountAdminService {
    @Autowired
    private AccountAdminDao accountAdminDao;

    public Account lookAccountInfoService(String id) {
        id = id.trim();
        List<Account> list = accountAdminDao.lookAccountInfoDao(id);
        return list.isEmpty() ? null : list.get(0);
    }


}
